<include file="Public/sui_header" />
<a href="{$model['h5_link']}"><img src="__PUBLIC__/file/{$model['img']}" class="detail-img" /></a>
<div style="font-size:1.2em">
    <span class="color-block">&nbsp;</span>&nbsp;基本信息
</div>
<div class="card">
    <div class="card-content">
        <div class="card-content-inner">
            <div class="list-block">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">姓名</div>
                                <div class="item-input">
                                    {$model['name']} ({$model['gender']})
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">价格</div>
                                <div class="item-input">
                                    ￥{$model['price']}/天
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<form method="post">
    <div style="font-size:1.2em">
        <span class="color-block">&nbsp;</span>&nbsp;定制信息
    </div>
    <div class="card">
        <div class="card-content">
            <div class="card-content-inner">
                <div class="list-block">
                    <ul>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">开始时间</div>
                                    <div class="item-input">
                                        <input type="date" name="start_time" placeholder="请选择开始日期">
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">结束时间</div>
                                    <div class="item-input">
                                        <input type="date" name="end_time" placeholder="请选择结束日期">
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">姓名</div>
                                    <div class="item-input">
                                        <input type="text" name="user_name" value="{$user['name']}" placeholder="请输入您的姓名">
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">性别</div>
                                    <div class="item-input">
                                        <select name="user_gender">
                                            <option value="男" <if condition="$user['gender'] eq '男'">selected </if>">男</option>
                                            <option value="女" <if condition="$user['gender'] eq '女'">selected </if>>女</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">电话</div>
                                    <div class="item-input">
                                        <input type="text" name="user_phone" value="{$user['username']}" placeholder="请输入您的电话">
                                    </div>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="item-content">
                                <div class="item-inner">
                                    <div class="item-title label">补充合同</div>
                                    <div class="item-input">
                                        <textarea name="user_contract"></textarea>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div style="font-size:1.2em">
        <span class="color-block">&nbsp;</span>&nbsp;游客信息
        <a href="__MODULE__/Tourist/list?fromType=Guider&fromId={$_GET[id]}" style="font-size: 0.8rem;">添加</a>
    </div>
    <div class="card">
        <div class="card-content">
            <div class="card-content-inner">
                <div class="list-block">
                    <ul>
                        <php>
                            $tourist = D('Tourist')->where(['user_id'=>session('用户')['id']])->select();
                        </php>
                        <volist name="tourist" id="vo">
                            <li>
                                <div class="item-content">
                                    <div class="item-inner">
                                        <label>
                                            <input type="checkbox" name="tourist[]" value="{$vo['id']}" > {$vo['name']}
                                        </label>
                                    </div>
                                </div>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div style="font-size:1.2em">
        <span class="color-block">&nbsp;</span>&nbsp;保险信息
    </div>
    <div class="card">
        <div class="card-content">
            <div class="card-content-inner">
                <div class="list-block">
                    <ul>
                        <php>
                            $insurance = D('Insurance')->select();
                        </php>
                        <volist name='insurance' id="vo">
                            <li>
                                <div class="item-content">
                                    <div class="item-inner">
                                        <label>
                                            <input type="checkbox" name="insurance[]" value="{$vo['id']}" <if condition="$vo['is_force'] eq '是'"> checked onclick="return false;" </if>> {$vo['name']} | ￥{$vo['price']}
                                        </label>
                                        <a href="{:U('Insurance/detail', ['id'=>$vo['id']])}">详情</a>
                                    </div>
                                </div>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="guider_user_id" value="{$_GET['id']}">
    <div class="row detail-submit">
        <div class="col-50"><a href="#" class="button button-big button-fill button-danger return">取消</a></div>
        <div class="col-50">
            <input type="submit" value="提交" class="button button-big button-fill button-success">
        </div>
    </div>
</form>
<include file="Public/sui_footer" />
